package com.example.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by dong peng on 2018/4/9.
 */
@RestController
public class HelloController {

    @Value("${conf}")
    private String conf;

    @RequestMapping("/hello")
    public String hello() {
        return "index "+conf;
    }
}
